Buffer_Memory [0..4] UNSORTED

Current_Memory_State

[ ?, ?, ?, ?, ? ]

Array_Sort

Click two bars to **SWAP** their positions. Align them by height (Index 0 = Shortest).

LOGIC_OPERATION

To sort an array, we use a temp variable to hold one value while we swap the others.

array[0]?
array[4]?